<html>

<head>
    <meta charset="utf-8">
    <title></title>
    <style type="text/css">
        * {
            padding: 0;
            margin: 0;
        }

        table {
            margin: 100px auto;
            border: 1px solid #000;
            border-collapse: collapse;
            /*设置表格的边框是否被合并为一个单一的边框*/
            border-spacing: 0;
            /*设置相邻单元格的边框间的距离*/
        }

        tr {
            width: 300px;
            height: 50px;
            line-height: 50px;
            border-bottom: 1px solid #000;
            background-color: pink;
        }

        td,
        th {
            width: 99px;
            height: 50px;
            line-height: 50px;
            text-align: center;
            border-right: 1px solid #000;
        }
    </style>
    <script type="text/javascript" src="jquery.min.js"></script>
</head>

<body>
</body>

</html>
<script src="http://libs.baidu.com/jquery/2.0.0/jquery.js"></script>
<script type="text/javascript">
    $.ajax({
        url: 'goodsAndShoppingCart/getGoodsList.php',
        type: 'get',
        datatype: 'json',
        success: function (res) {
            // console.log(res);
            let arr = JSON.parse(res);
            console.log(arr);
            
            
        }
    })
</script>